package object;

public class Object2 {
    public static void main(String[] args) {
        String a = new String("haha");
        String b = new String("haha");
        System.out.println(a==b);
        System.out.println(a.equals(b));



        StringBuilder c = new StringBuilder("haha");
        StringBuilder d = new StringBuilder("haha");
        System.out.println(c==d);
        System.out.println(c.equals(d));



    }
}
